home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Power Programmierung
/
Power-Programmierung (Tewi)(1994).iso
/
magazine
/
progjour
/
1991
/
01
/
local.h
< prev
next >
Wrap
C/C++ Source or Header
|
1990-10-01
|
1KB
|
62 lines
/**********************************************
LOCAL.h -- Header file for program
***********************************************/
#include <conio.h> /* for kbhit prototype */
#define WAIT_FOR_KEY { while( !kbhit ); getch(); }
/* some the the graphics library specific code
is separated out here */
#ifdef MSDOS
/* Microsoft C Compiler */
#define ERASE_SCREEN _clearscreen( _GCLEARSCREEN )
#define RESET_VIDEO_MODE _setvideomode( _DEFAULTMODE )
/* for VGA screen */
#define COLORS 16
#define NUM_ROWS 640
#define NUM_COLS 480
#define VIDEO_MODE _VRES16COLOR
#else
/* define these for your own graphics library */
#define ERASE_SCREEN
#define RESET_VIDEO_MODE
#define WAIT_FOR_KEY
#endif
typedef unsigned int UINT;
typedef unsigned long ULONG;
/**********************************************/
/* structures */
/**********************************************/
struct VIDEO
{
UINT x_pixels, y_pixels, colors, mode;
} video;
typedef struct
{
UINT x, y;
} POINT;
/**********************************************/
/* function prototypes */
/**********************************************/
void origin( void );
void newline( void );
char * start_speedo( char * );
void place_text( char * );